_d_dynamic_cast

private fnvoid * _d_dynamic_cast(To)(const return scope Object o) @trusted

Dynamic cast from a class object o to class or interface To, where To is a subtype of o.

Parameters

oinstance of class
Toclass or interface that is a subtype of o

Returns

null if o is null or To is not a subclass type of o. Otherwise, return o.