Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class, or throws an exception if it cannot.
Parameters
Parameters
Description
pClass
[in] Raw pointer to the class describing instance to which the object must be converted.
Remarks
This method generates the eNotThatKindOfClass exception when the object can be not converted to the specified class. This method generates the eInvalidInput exception when the argument pClass is Null. This method uses the queryX() method.