In C++ with RTTI, IIRC it returns null. That's also "failure at runtime" (of a sort), but you have to check it.
In C++ with RTTI, IIRC it returns null. That's also "failure at runtime" (of a sort), but you have to check it.