code: private Number convert(Class<? extends Number> type, Float value) {
  		if (int.class.isAssignableFrom(type) || Integer.class.isAssignableFrom(type)) {
  			return value.intValue();
  		}
  		if (float.class.isAssignableFrom(type) || Float.class.isAssignableFrom(type)) {
  			return value;
  		}
  		throw new IllegalArgumentException("Use integer or float");
  	}
docs: Returns converted value of the provided float value (to the provided type).
  
  @param type  Type to convert float to. Currently only {@link Float} and {@link Integer} are supported.
  @param value Float value to convert.
  
  @return Converted value of the provided float value (to the provided type).
  
  @throws IllegalArgumentException If an unsupported type is provided.