I've migrated to Swift 3.0 and I'm now getting an error on this line:
let lastFourDigits = (accountNumber as NSString).substringWithRange(accountNumber.endIndex.advancedBy(-4)..<accountNumber.endIndex)
No '..<' candidates produce the expected contextual result type 'NSRange' (aka '_NSRange')
. What am I doing wrong here?