because you use an int to receive it not an Integer.
Comment From: wilkinsona
Thanks very much, @XenoAmess.