title: Assigning type at runtime
body: <p>I have a variable x of type T and value that is in a string.
  For example I have:</p>
  
  <pre><code>bool x, value = "True"
  int x, value = "1"
  </code></pre>
  
  <ul>
  <li><strong>Is there a generic way to assign/parse/deserialize the value to x?</strong></li>
  </ul>
  
  <p>Note that T may be referenced or primitive type!</p>