Variable conversion warning fixes

Unsigned/signed, size_t to unsigned int static casts