reference type to primitive type conversion
Hello,
How can i convert an object of reference type to a primitive type (long type for example)?
I have a long value:
Long pc =2;
I add it to a Stack :stack,
stack.add(pc);
When I will extract the pc value from the stack,
long pc =stack.pop();
This is incompatible type, how can I convert an object to a long type?
Please anyone help me.
Regards.

