Cast an integer to an equally sized unsigned type.
If the original type is already unsigned, the input is returned unmodified.