Here you can find the source of toInt(final Object valueRep)
public static Integer toInt(final Object valueRep) throws NumberFormatException
//package com.java2s; //License from project: Open Source License public class Main { public static Integer toInt(final Object valueRep) throws NumberFormatException { return Integer.parseInt(String.valueOf(valueRep)); }/*from w w w. j a va 2 s .co m*/ }