Probably it would be nicer: `NSInteger lastNumber = number.integerValue % 10`.