Use an int instead of the type enumeration in the constructor of a treenode