I can't seem to figure out how to get Objective-c to auto box my primitives.
I assumed that i would be able to do the following
float foo = 12.5f;
NSNumber* bar;
bar = foo;
However i find that i have used to the more verbose method of
float foo = 12.5f;
NSNumber* bar;
bar = [NSNumber numberWithFloat:foo];
Am i doing it wrong or is this as good as it gets?