Fixed conversion from (u)int64 to other integer types.