Removed Value Conversion warnings

Added appropriate (NSUInteger) casts to silence Value Conversion
warnings.