Fix 32-bit compilation

It worked in D1 because of more permissive implicit conversions