public Float asFloatObj ( ) { if ( current == null ) return null ; if ( current instanceof Number ) { if ( current instanceof Float ) return ( Float ) current ; return Float . valueOf ( ( ( Number ) current ) . floatValue ( ) ) ; } return Float . NaN ; }
get the current object value as Float if the current Float can not be cast as Integer return null .