How to identify the type of an object (Rerpesentation, Scene Graph Element, Appearance, etc.)?

How to identify the type of an object (Rerpesentation, Scene Graph Element, Appearance, etc.)?

In order to return the type of a ModelData_BaseObject, use its IsOfType method.