Add a cast so that callers don't need to downcast any NSUInteger parameters.