code: public static <T> T toTypeWithDefault(Class<T> type, Object value, T defaultValue) {
  		T result = toNullableType(type, value);
  		return result != null ? result : defaultValue;
  	}
docs: Converts value into an object type specified by Type Code or returns default
  value when conversion is not possible.
  
  @param type         the Class type for the data type into which 'value' is to be converted.
  @param value        the value to convert.
  @param defaultValue the default value to return if conversion is not possible
  (returns null).
  @return object value of type corresponding to TypeCode, or default value when
  conversion is not supported.
  
  @see TypeConverter#toNullableType(Class, Object)
  @see TypeConverter#toTypeCode(Class)