title: How to convert interface{} to []int?
body: <p>I am programming in Go programming language.</p>
  
  <p>Say there's a variable of type <code>interface{}</code> that contains an array of integers. How do I convert <code>interface{}</code> back to <code>[]int</code>?</p>
  
  <p>I have tried</p>
  
  <pre><code>interface_variable.([]int)
  </code></pre>
  
  <p>The error I got is:</p>
  
  <pre><code>panic: interface conversion: interface is []interface {}, not []int
  </code></pre>