_d_class_cast

private fnvoid * _d_class_cast(To)(const return scope Object o)

Dynamic cast from a class object o to class type To, where To is a subclass type of o.

Parameters

oinstance of class
Toa subclass type of o

Returns

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