code: protected <T> T convert(final String value, final Class<T> type) {
      Assert.notNull(type, "The Class type to convert the String value to cannot be null!");
  
      if (getConversionService().canConvert(String.class, type)) {
        return getConversionService().convert(value, type);
      }
  
      throw new ConversionException(String.format("Cannot convert String value (%1$s) into a value of type (%2$s)!",
        value, type.getName()));
    }
docs: Converts the configuration setting property value into a value of the specified type.
  
  @param <T> the type of object the String property value is converted into.
  @param value the String property value to convert.
  @param type the Class type to convert the String property value into.
  @return the String property value into a value of type T.
  @throws NullPointerException if the specified conversion Class type is null.
  @throws ConversionException if the String property value cannot be converted into an object of type T.
  @see #getConversionService()
  @see org.cp.elements.data.conversion.ConversionService