Add explicit casts so that we silence the Xcode warning in both
64- and 32-bit builds.