Use a cast to unsigned int instead of a string method