Problem downcasting
I need to change an Object type to int like this int i = (int)Object;where Object is the Object type variable holding my info. When I do that I get an error. How can I fix it?Thanks!!
[211 byte] By [
lgarcia3] at [2007-9-30 22:06:08]

Primitive-typed data (like byte, char, int) are no objects. 1.5 has the autoboxing to provide a mechanism to convert int to an Integer and the other way around. What do you need exactly?