Here you can find the source of objectToInt(Object Obj)
public static int objectToInt(Object Obj)
//package com.java2s; //License from project: Open Source License public class Main { public static int objectToInt(Object Obj) { int NumInt = Integer.parseInt(objectToString(Obj)); return NumInt; }//from ww w .j a va2 s .c om public static String objectToString(Object Obj) { String Str = ""; if (Obj != null) { Str = Obj.toString(); } return Str; } }