Cast CCNode into CCSprite

Hi there.

I need to figure out how to cast a Node into Sprite. Here’s the code that I have

    var ccNodeLoaderLibrary = cc.NodeLoaderLibrary.newDefaultCCNodeLoaderLibrary();

    var ccbReader = new cc.BuilderReader(ccNodeLoaderLibrary);
    var node = ccbReader.readNodeGraphFromFile("res/PublishedHTML5/Kd.ccbi");

As I understand this makes a node a CCNode. I need to figure out a way to make sprite out of that ccbi.

Any ideas?

Thanks

In javascript, if the node you read is a sprite, it will be a sprite, javascript is a weak type language