I think @(idx) is equivalent to the NSNumber boxing method you are using here if you prefer. Other than that comment +1