Here\'s what I want to do:
const int64_t randomIntNumber = reinterpret_cast
Where randomUintNumber is of type
reinterpret_cast is used for reinterpreting the storage of the object as a different object. If you don't want to go through standard wording, you can find all that reinterpret_cast can do here. Generally you can remember you have to work with pointer types.
So, if you really want to reinterpret the bits used for your uint64_t as int64_t, then do this:
int64_t randomIntNumber = reinterpret_cast (randomUintNumber);
However if you just want to convert the object, preserving its value if possible ... just do what the compiler suggests and use static_cast instead.