Fix implicit cast regardless if the target is 32/64 bits.