Cast uint8 to int during math operations so that results may be signed