Get CCDictionary key type?

From what I can tell, the only way to get the dictionary key type is to use allKeys() and then check the key type. However, this creates a new array for every call. Is there any other way besides hacking getType() into CCDictionary? In hindsight, maybe I should have used std::maps.