code: static
  	private Float toFloat(Object value){
  
  		if(value instanceof Float){
  			return (Float)value;
  		} else
  
  		if(value instanceof Double){
  			Number number = (Number)value;
  
  			return toFloat(number.floatValue());
  		} else
  
  		if((value instanceof Long) || (value instanceof Integer) || (value instanceof Short) || (value instanceof Byte)){
  			Number number = (Number)value;
  
  			return toFloat(number.floatValue());
  		} else
  
  		if(value instanceof Boolean){
  			Boolean flag = (Boolean)value;
  
  			return (flag.booleanValue() ? Numbers.FLOAT_ONE : Numbers.FLOAT_ZERO);
  		} else
  
  		if((value instanceof DaysSinceDate) || (value instanceof SecondsSinceDate) || (value instanceof SecondsSinceMidnight)){
  			Number number = (Number)value;
  
  			return toFloat(number.floatValue());
  		}
  
  		throw new TypeCheckException(DataType.FLOAT, value);
  	}
docs: <p>
  Casts the specified value to Float data type.
  </p>
  
  @see DataType#FLOAT