Cast node to element.