I am trying to use the following line of code to cast a CRect to a CCbject:


CObject* pHint=DYNAMIC_DOWNCAST(CObject, mRects[x][y]);

but I get an error stating "none of the two overloads can convert parameter 2 from type 'Class CRect*'"

I need this to use in CView OnUpdate so that I only redraw part of the screen.