Added casts for proper changing of data-types for data manipulation and
use

+ Mostly just unsigned char to char