if ( !(other instanceof TypedValue) ) return false;
TypedValue that = (TypedValue) other;
/*return that.type.equals(type) &&
EqualsHelper.equals(that.value, value);*/
return type.getReturnedClass() == that.type.getReturnedClass() &&
type.isEqual(that.value, value, entityMode);