The function returns the type of the object pointer.
Note: this function is for compatibility only. Do not use it in new projects.