package p; class Test { void m(){ Object object = new Integer(2); int i = ((Integer) object).intValue(); } }