title: 'Int' is not identical to 'String.Index'
body: <p>As an exercise I am rewriting one of my apps using Swift.</p>
  <p>In Objective-C I had the following line of code:</p>
  <pre><code>NSRange extendedRange = NSUnionRange(range, [[self.backingStore string]lineRangeForRange:NSMakeRange(NSMaxRange(range), 0)]);
  </code></pre>
  <p>In swift it looks like this:</p>
  <pre><code>let str = backingStore.string
  let extendedRange: NSRange = NSUnionRange(range, str.lineRangeForRange(NSMakeRange(NSMaxRange(range), 0)))
  </code></pre>
  <p>However, for some reason I am getting 'Int' is not identical to 'String.Index' and I can't figure out why. Any help / insight would be appreciated.</p>
  <hr />
  <h3>EDIT:</h3>
  <p>If I bridge my string, it works:</p>
  <pre><code>let str = backingStore.string
  let extendedRange: NSRange = NSUnionRange(range, str.bridgeToObjectiveC().lineRangeForRange(NSMakeRange(NSMaxRange(range), 0)))
  </code></pre>