isAssignableFrom
Determines whether this class can be safely cast to other.
Returns true if either of the following is true:
The first and the second class arguments refer to the same Java class.
The first class is a subclass of the second class.
The first class has the second class as one of its interfaces.