My apologies if the question seems weird. I'm debugging my code and this seems to be the problem, but I'm not sure.
Thanks!
If you have a variable unsigned int x;, you can convert it to an int using (int)x.
unsigned int x;
int
(int)x