Fix build warnings for number property

This required changing the pointers to values and casting the NSUInteger to an int in one place.