title: Cannot implicitly convert type 'string' to 'System.Data.SqlClient.Sqlconnection'
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>cannot implicitly convert type 'string' to 'System.Data.SqlClient.Sqlconnection'</p>
  </blockquote>
  
  <p>for this code:</p>
  
  <pre><code>SqlConnection con1 = ConfigurationManager.ConnectionStrings["connect"].ConnectionString;
  </code></pre>
  
  <p>How do I solve this problem? I am working with a Windows application.</p>