I have a line of code that will work differently depending on the datatypes \"day\" and \"1\". I believe it is the following although I will check my source code later.
NSInteger and int are equivalent, NSNumber is an object used to store primitive number types (int, long, float, etc.).
NSInteger
int
NSNumber
The example code you posted will work just fine if day is an NSinteger, it won't work at all if it's an NSNumber.
day
NSinteger