title: How to get a subArray from Swift 2.0
body: <p>I keep trying to search for the proper way to get a sub array in Swift but I am missing something here. This code doesn't work because <code>rowArray.append(row)</code> throws an error that states.</p>
  
  <blockquote>
    <p>Cannot convert value of type 'ArraySlice&lt;Int&gt;' to specified type
    '[Int]'</p>
  </blockquote>
  
  <p>I can't figure out how to get an [Int] out of the main array or to convert ArraySlice&lt;Int&gt; to [Int]. I am guessing I am missing something simple but can't seem to find the answer from the docs.</p>
  
  <pre><code>var rowArray = [[Int]]()
  
  var rangeStart = 0
  let rangeLength = mapWidth
  
  for var index = 0; index &lt; mapHeight; ++index{
      rangeStart = tileIDs.count - ((index + 1) * mapWidth )
  
      let row : [Int] = tileIDs[rangeStart...rangeStart+rangeLength]
      rowArray.append(row)
  }
  rowArray.append(row)
  </code></pre>