public static boolean matchValue(Object expectedType, Object actualValue) {
		if (expectedType == null)
			return true;
		if (actualValue == null)
			throw new NullPointerException("Actual value cannot be null");

		return matchType(expectedType, actualValue.getClass());
	}
public static boolean matchValue ( Object expectedType , Object actualValue ) { if ( expectedType == null ) return true ; if ( actualValue == null ) throw new NullPointerException ( "Actual value cannot be null" ) ; return matchType ( expectedType , actualValue . getClass ( ) ) ; }
Matches expected type to a type of a value. The expected type can be
specified by a type, type name or TypeCode.

@param expectedType an expected type to match.
@param actualValue  a value to match its type to the expected one.
@return true if types are matching and false if they don't.

@see #matchType(Object, Class)
@see #matchValueByName(String, Object) (for matching by types' string names)