Touches TEST in Android crashes - Dynamic cast fails when inheriting from CCSprite

After the latest Cocos changes where dynamic casts were introduced, I am having the following issue:

I declared:

class TouchSprite : public CCSprite, public CCTargetedTouchDelegate

and in the onEnter function I am doing:

void TouchSprite::onEnter() {
CCSprite::onEnter();
CCTouchDispatcher::sharedDispatcher()>addTargetedDelegate;
}
After tracing, I found that bool CCTouchHandler::initWithDelegate fails in
)
>retain();

because the dynamic cast fails and returns NULL.

The code works fine when compiled using Xcode in iOS, but fails in Android. Any ideas?

* The touchesTest demo (which my code snippet is based on), crashes the same way in Android (runs fine in iPhone), I hope
this makes it easier for the team to find the issue.

Thanks!