Error converting interface{} to int go-gin
<p>I have an <code>interface{}</code> type value received from <code>*gin.Context</code>:</p>

<pre><code>c.MustGet("account")
</code></pre>

<p>When I try to convert this into <code>int</code> using :</p>

<pre><code>c.MustGet("account").(int)
</code></pre>

<p>I get an error:</p>

<pre><code>interface conversion: interface is float64, not int
</code></pre>

<p>The value of this interface is <code>1</code>. Why am I receiving this error? I am using this value in a sql query. I cannot convert this to <code>float64</code> as the sql statement fails then. How can I convert this into <code>int</code>?</p>