Pointer type in atomic.cc
Defined pointer conversion macro
First set of cast fixes