title: How can i put an exception on EXC_BAD_INSTRUCTION?
body: <p>I'm trying to put an exception for the following line:</p>
  
  <pre><code>let someData Int = Int(anArray[0])!
  </code></pre>
  
  <p>I want the exception so that it ignores it if its a string instead of an integer.</p>
  
  <p>Im new to swift, but in python i could just do the following:</p>
  
  <pre><code>try:
      let someData Int = Int(anArray[0])!
  except:
      pass
  </code></pre>
  
  <p>I've tried the following:</p>
  
  <pre><code>guard let someData Int = Int(anArray[0])! else {
      print("error")
  }
  </code></pre>
  
  <p>,</p>
  
  <pre><code>let someData Int = try! Int(anArray[0])!
  </code></pre>
  
  <p>I'm using swift 3</p>