Here you can find the source of objToInt(Object obj)
public static int objToInt(Object obj)
//package com.java2s; public class Main { public static int objToInt(Object obj) { Integer integer = null;//from www . j a v a 2 s . com if (obj != null) { integer = (Integer) obj; } return integer; } }