How to cast the result of sql command to the int variable?
<p>I am developing a web application and in the code-behind, I need to get the ID column from specific table in the database and convert it to int. The query is:</p>

<pre><code>string quizID = SELECT MIN(column_name) FROM table_name
</code></pre>

<p>and I want to put the value of it in </p>

<pre><code>int quizid
</code></pre>

<p>which means I need to conversion, <strong>so how to do that?</strong></p>
