Use a cast to unsigned int instead of a string method

There isn't an official method to get `unsignedIntValue`. This will use a cast on `intValue` instead.