Here you can find the source of toInteger(Object o)
public static Integer toInteger(Object o)
//package com.java2s; //License from project: Open Source License public class Main { public static Integer toInteger(Object o) { if (o == null) { return null; }//from w w w .java 2 s . c o m return Integer.valueOf(String.valueOf(o)); } }