Problem with implicitly conversion of string
<p>I have a object 'currentVersion' of type Data and string variable of 'version',i need to assign what ever things coming  'version' to 'currentVersion'
Code is like this</p>

<pre><code>    private static DataVersion currentVersion = new DataVersion();

    string version = this_event.variableData[1].atr_value;

and in internal layers 
public SPD_variableData[] variableData;
and 
      /// &lt;summary&gt;
      /// Definition of variable data for events.
      /// &lt;/summary&gt;
      public struct SPD_variableData
      {
         /// &lt;summary&gt;
         /// attribute name 
         /// &lt;/summary&gt;
         public string attribute;
         /// &lt;summary&gt;
         /// attribute value
         /// &lt;/summary&gt;
         public string atr_value;
      }
</code></pre>

<p>but when i did currentVersion = version ; i am getting error like this "Error   1   Cannot implicitly convert type 'string' to 'Safe.Model.Data' "
if that is the case how i can assign values coming on version to currentVersion</p>
