Changing NSDictionary to a more generic id