Using the below code (for example) I can cast AutomationElement to UITestControl
AutomationElement e = AutomationElement.FromHandle(Window.WindowHandle);
UITestControl u = UITestControlFactory.FromNativeElement(e, "UIA");
But how can I do it other way round i.e. How to cast a UITestControl to AutomationElement?