cc.find查找到对象,能转换成实际类型吗?

_prefabView:cc.Prefab

this._prefabView=cc.find(“proBar”, this._ui);

用cc.find找到的对象类型为cc.Node,不能转成cc.Prefab么?

试过 this._prefabView=<cc.Prefab>cc.find(“proBar”, this._ui)报错类型不能转

汗,原来如此:
this.prefabView=cc.find(“proBar”, this.ui).getComponent<cc.ProgressBar>(cc.ProgressBar);
或者
this.prefabView=this._ui.getChildByName(“proBar”).getComponent<cc.ProgressBar>(cc.ProgressBar);