Use NSInteger and encode the data as NSNumbers