public static object Microsoft_Robotics_Services_Sample_MindSensors_Compass_CompassSensorState_TO_Microsoft_Robotics_Services_Sample_MindSensors_Compass_Proxy_CompassSensorState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.Proxy.CompassSensorState target = new global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.Proxy.CompassSensorState();
     global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.CompassSensorState from = ((global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.CompassSensorState)(transformFrom));
     target.Connected = from.Connected;
     target.Name = from.Name;
     target.SensorPort = from.SensorPort;
     target.PollingFrequencyMs = from.PollingFrequencyMs;
     global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.CompassReading tmp = from.Heading;
     if ((tmp != null)) {
         target.Heading = ((global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.Proxy.CompassReading)(Microsoft_Robotics_Services_Sample_MindSensors_Compass_CompassReading_TO_Microsoft_Robotics_Services_Sample_MindSensors_Compass_Proxy_CompassReading(tmp)));
     }
     return target;
 }
 public static object Microsoft_Robotics_Services_Sample_MindSensors_Compass_CompassSensorState_TO_Microsoft_Robotics_Services_Sample_MindSensors_Compass_Proxy_CompassSensorState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.Proxy.CompassSensorState target = new global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.Proxy.CompassSensorState();
     global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.CompassSensorState       from   = ((global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.CompassSensorState)(transformFrom));
     target.Connected          = from.Connected;
     target.Name               = from.Name;
     target.SensorPort         = from.SensorPort;
     target.PollingFrequencyMs = from.PollingFrequencyMs;
     global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.CompassReading tmp = from.Heading;
     if ((tmp != null))
     {
         target.Heading = ((global::Microsoft.Robotics.Services.Sample.MindSensors.Compass.Proxy.CompassReading)(Microsoft_Robotics_Services_Sample_MindSensors_Compass_CompassReading_TO_Microsoft_Robotics_Services_Sample_MindSensors_Compass_Proxy_CompassReading(tmp)));
     }
     return(target);
 }