Simply assign that object reference to a variable of its corresponding primitive type
public class MainClass { public static void main(String args[]) { Integer iOb = 100; // autobox an int int i = iOb; // auto-unbox System.out.println(i + " " + iOb); } }