Fix unsafeCoerce (use fromIntegral intead)