code: public static Object convertToObject(String value, Class type, Locale locale) {
          BaseTypeConverter converter = lookupTypeConverter(type);
          assert converter != null;
          return converter.convertToObject(type, value, locale);
      }
docs: Convert an object from a String to the given type using the specified {@link java.util.Locale}.
  <p/>
  The locale is optionally used depending on the implementation of the {@link TypeConverter} that is used.
  
  @param value  the String to convert
  @param type   the type to which to convert the String
  @param locale the locale to use during conversion
  @return the Object result of converting the String to the type.
  @throws TypeConverterNotFoundException if a TypeConverter for the target type can not be found.