I have a the following code.
vector* irds = myotherobj->getIRDs();//gets a pointer to the vector for(vector::iterator it = ir
The usual idiom is &*it to get a pointer. Dynamic casts have nothing to do with it.