Added type signature to fromIntegral