code: public static boolean matchType(Object expectedType, Class<?> actualType) {
  		if (expectedType == null)
  			return true;
  		if (actualType == null)
  			throw new NullPointerException("Actual type cannot be null");
  
  		if (expectedType instanceof Class<?>)
  			return ((Class<?>) expectedType).isAssignableFrom(actualType);
  
  		if (expectedType instanceof String)
  			return matchTypeByName((String) expectedType, actualType);
  
  		if (expectedType instanceof TypeCode)
  			return TypeConverter.toTypeCode(actualType).equals(expectedType);
  
  		return false;
  	}
docs: Matches expected type to an actual type. The types can be specified as types,
  type names or TypeCode.
  
  @param expectedType an expected type to match.
  @param actualType   an actual type to match.
  @return true if types are matching and false if they don't.
  
  @see #matchTypeByName(String, Class)