Add cast to eliminate 64-bit compiler warning.