question: public static boolean typeCheck ( Class type , Object instance ) { return type . isAssignableFrom ( instance . getClass ( ) ) || isWrapperInstance ( type , instance ) ; }
target:  Check if an object is an instance of a given class, or, if the class is a primitive type, if the Object is an instance of the wrapper class for that primitive (e.g., as Integer is a wrapper for int).