Added cast for 32 bit compiler.