title: Cast from unknown type in c#
body: <p>I have a object that contain a value in string and a origin Type that is in a field.</p>
  
  <pre><code>class myclass
  {
     public string value;
     public Type type;
  }
  myclass s=new myclass();
  s.value = "10";
  s.type = typeof(int);
  Type tt = s.type;
  row.Value[ind]= s[0].value as tt; //i have error here
  </code></pre>
  
  <p>How can i cast an value by that's type.</p>