I'm updating a project to Swift 3 and came across the following warning which I can't seem to resolve.
fileprivate var filteredTitlesList: [String] = []
if let filteredTitle: String = filteredTitlesList[indexPath.row] as String { // 'Non-optional expression of type 'String' used in a check for optionals'
// Do something
}
The answer to a similar question here didn't help me: Non-optional expression of type 'AnyObject' used in a check for optionals
Thanks a lot!