public static boolean isInstanceOf(final Class type, final Object obj) {
    return (type != null && type.isInstance(obj));
  }
Determines whether the specified Object parameter is an instance of, or is
assignment-compatible with the given Class type. Note, this method is null-safe for both Class
and Object value references.
<p>

@param type the Class type used in an instanceof determination with the given Object.
@param obj the Object being determined for assignment-compatibility with the specified Class
       type.
@return a boolean value indicating if the given Object is an instance of the specified Class
        type.
@see java.lang.Class#isInstance(Object)
geode-common/src/main/java/org/apache/geode/internal/lang/utils/ClassUtils.java