ASP.NET Login, Convert.ToInt32();
<p>I'm making a login script and can't get the <code>Convert.ToInt32()</code> to work for me.</p>

<p>The error: Error    </p>

<blockquote>
  <p><em>'System.Convert.ToInt32(object)' is a 'method' but is used like a
  'type'</em></p>
</blockquote>

<p>snippet:</p>

<pre><code>    con.Open();
    string mysql; // generate an sql insert query for the database
    mysql = "SELECT * FROM [Users] UserName='" + tbUser.Text + "'";
    OleDbCommand CheckUser = new OleDbCommand(mysql, con);
    int temp = new Convert.ToInt32(CheckUser.ExecuteScalar().ToString());
</code></pre>

<p>Appreciate any help.</p>
