Change from TNode/TElement::with_element() to as_element().