Suppress more benign clang warnings about  casting

Clang was sensitive to the potential mismatch between uint64_t
unsigned long. Added a cast to suppress this warning.