Here you can find the source of toInt(Number wrapped)
public static int toInt(Number wrapped)
//package com.java2s; public class Main { public static int toInt(Number wrapped) { if (wrapped == null) { return -1; }// ww w . j ava 2 s .co m return wrapped.intValue(); } }