public static Float toFloat(Object obj) {
		if(obj==null)
			return null;
    	String string=StringUtils.trimNonNumeric(obj.toString());
    	Float o=null;
        try {
            o=new Float(Float.parseFloat(string));
        } catch (NumberFormatException ex) {
        }
        return o;
	}