i someone is interested in a template class based on NSNumber with the ability to store ints, floats, unsigned long longs etc and that can be stored in arrays and dicts, here we go:
Just clone it and copy the header in your project.
I have also added a CCValue class now which can store any arbitrary pod type. I also extended both classes with comparison and factory methods for fast copying.
I know it is nothing big but I missed both of them pretty hard in the cocos2dx library.