title: cannot use temp (type interface {}) as type []string in argument to equalStringArray: need type assertion
body: <p>I'm trying to pass a string array to a method. Although it passes the assertion, I'm getting this error </p>
  
  <pre><code>cannot use temp (type interface {}) as type []string in argument to equalStringArray: need type assertion
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>if str, ok := temp.([]string); ok {
      if !equalStringArray(temp, someotherStringArray) {
          // do something
      } else {
          // do something else
      }
  }
  </code></pre>
  
  <p>I've also tried checking the type with <code>reflect.TypeOf(temp)</code> and that's also printing <code>[]string</code></p>