This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
You can't cast from int to Number because int is a primitive type and Number is an object. Casting an object is changing the reference type from one type of object to another. You first have to have an object to work with. What you will have to do is create an instance of Integer using the constructor Integer(int myInt). Integer is a subclass of Number, so you can use it like an instance of Number or cast it, as you choose. So here is an example of how you could get an integer variable, i into a Number object numObj: