I am creating objects of 3 classes that all inherit from 1 superclass and then store them in a `vector<superclass*>`. Now I want to iterate over all objects of one particular class, but I fail to discern between the 3 classes.

I tried `typeid()`, but that only returns the superclass. I decided against using `dynamic_cast<class>()`, as I read that it was something to be avoided if possible.
All I want to know is what class I'm dealing with when picking an object from the vector.

Is there something simple like `.getClass().IsInstance()` in Java that I could use?