Subtree conversion