Add function toUnsigned