Explicit unsigned int to int cast where needed