title: Cannot convert type 'System.Windows.Forms.Control' to 'T'
body: <p>I am trying to make a Generic FindControl method and I get the following error:</p>
  
  <p><strong>Cannot convert type 'System.Windows.Forms.Control' to 'T'</strong></p>
  
  <p>Code:</p>
  
  <pre><code>public T Control&lt;T&gt;(String id)
  {
    foreach (Control ctrl in MainForm.Controls.Find(id, true))
    {
      return (T)ctrl; // Form Controls have unique names, so no more iterations needed
    }
  
    throw new Exception("Control not found!");
  }
  </code></pre>