Added a static_cast for 64 bit compiling