Converting result of round or floor as Int in Metal

Presumably exactly as unsafe as the docstring says:

Return the nearest integral value of type T whose absolute value is less
than or equal to the absolute value of x. If the value is not representable
by T, an arbitrary value will be returned. See also trunc.