Resolve implicit cast issue on 32-bit architectures