added cast node support