I\'m trying to store the value of an address in a non pointer int variable, when I try to convert it I get the compile error \"invalid conversion from \'int*\' to \'int\'\" this
Why are you trying to do that, anyway you just need to cast, for C code :
thatvalue = (int)ip;
If your writing C++ code, it is better to use reinterpret_cast
reinterpret_cast