dynamic_cast
Syntax:
dynamic_cast<type> (object); The dynamic_cast keyword casts a datum from one type to another, performing a runtime check to ensure the validity of the cast. If you attempt to cast between incompatible types, the result of the cast will be NULL. |