// to int i from Integer ii int i = ii.intValue(); // to Integer ii from int i Integer ii = new Integer( i );