关于数据类型转换的问题

现在有一个方法返回的是Node类型的节点,我现在要转换成TextField类型该如何转换?

dynamic_cast<typename *>(obj) C++的

lua js 不用转