casts to suppress warnings under 64bit