qobject_cast, Type Identification and qobject_cast