If you have an
MData pointer and do not know the type to which it belongs, you can call downcast() first, then retrieve the actual data. If you already know the type, you can call this method directly. Note, however, that an exception is raised if you actually have a NULL data pointer.