@SuppressWarnings({"unchecked"}) @HotSpotIntrinsicCandidate
public T cast (Object obj)

Casts an object to the class or interface represented by this Class object.

Parameters:
obj    the object to be cast

Returns:  the object after casting, or null if obj is null

Exceptions:
ClassCastException    if the object is not null and is not assignable to the type T.

Since:  1.5