Casts an object to the class or interface represented by this Class object.
Class
Parameters:
obj
Returns: the object after casting, or null if obj is null
Exceptions:
ClassCastException
Since: 1.5
Diagram: Class, Package, Module