Here you can find the source of toFloat(Object o)
public static Float toFloat(Object o)
//package com.java2s; //License from project: Open Source License public class Main { public static Float toFloat(Object o) { if (o == null) { return null; }//from w w w. j a v a2 s. c o m return Float.valueOf(String.valueOf(o)); } }