title: Dynamic casting based on a string
body: <p>Is there a way in C# to cast an object based on a string?</p>
  
  <p>Example,</p>
  
  <pre><code>String typeToCast = control.GetType().Name;
  
  Button b = (typeToCast)control;
  </code></pre>