wxObject * wxGetTypedObject(long objectId, int expectedType)
Get an object from the hash table. Pass the integer handle and expected type. An error message is generated if the found type is not equal to or a subtype of the expected type, returning NULL. Coerce to the desired C++ object.