Determines if the specified Object is assignment-compatible with the object represented by this Class. This method is the dynamic equivalent of the Java language instanceof operator. The method returns true if the specified Object argument is non-null and can be cast to the reference type represented by this Class object without raising a ClassCastException. It returns false otherwise.
Message was edited by:
instanceof requires you to know the class you want to compare against at compile time. isInstance does not.
instanceof will probably be slightly faster, but you probably won't notice any difference in most situations.