fromIntegral package:dimensional

General coercion from Integral types. WARNING: This function performs silent truncation if the result type is not at least as big as the argument's type.