I need to cast ControlType object that belongs to the struct AutomationElementInformation from Interop.UIAutomationClient.dll to UIAComWrapper.dll. Both belongs to namespace System.Windows.Automation.
I tried JSON serialization/de-serialization but that requires constructor, whereas class ControlType has static, read-only members.