public class Test { void method(Integer... p) { int i = p[0].intValue(); } public void doSmth() { m(123); } }