type to node