title: How to convert string to any type
body: <p>I want to convert a string to a generic type</p>
  
  <p>I have this:</p>
  
  <pre><code>string inputValue = myTxtBox.Text;    
  
  PropertyInfo propInfo = typeof(MyClass).GetProperty(myPropertyName);
  Type propType = propInfo.PropertyType;
  
  object propValue = ?????
  </code></pre>
  
  <p>I want to convert 'inputString' to the type of that property, to check if it's compatible
  how can I do that?</p>
  
  <p>tks </p>