id i = (id)90; // error printf("%d", (int)i); id i = [NSNumber numberWithInt:90]; // ok NSLog(@"%@", i);