title: Reference to member 'subscript' cannot be resolved without a contextual type
body: <p>I need to convert an array of strings to integers.</p>
  <pre><code>import UIKit
  
  var test = [&quot;1&quot;, &quot;2&quot;]
  let test1 = Int(test)[0]
  let test2 = Int(test)[1]
  print(test1 + test2)
  </code></pre>
  <p>^ this is the basic idea of what I'm trying to do, but I get &quot;Reference to member 'subscript' cannot be resolved without a contextual type&quot;. Is this even possible?</p>