title: searchbar textDidChange error
body: <p>I am trying to implement a searchbar for a tableView and I am receiving the error "...Binary operator '==' cannot be applied to operands of type 'Place' and 'String'" in my textDidChange method. The tableView is populated from a Firebase database "placeList" array. Not sure where the error source is coming from. Thanks in advance for any help!</p>
  
  <pre><code>lazy var searchBar:UISearchBar = UISearchBar()
  
  var placeList = [Place]()
  var placesDictionary = [String: Place]()
  
  var isSearching = false
  var filteredData = [Place]()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      searchBar.searchBarStyle = UISearchBarStyle.prominent
      searchBar.placeholder = " Search Places..."
      searchBar.sizeToFit()
      searchBar.isTranslucent = false
      searchBar.backgroundImage = UIImage()
      searchBar.delegate = self
      searchBar.returnKeyType = UIReturnKeyType.done
      navigationItem.titleView = searchBar
  
      tableView.allowsMultipleSelectionDuringEditing = true
  
  }
  
  override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
      let cell = UITableViewCell(style: .subtitle, reuseIdentifier: cellId)
  
      if isSearching {
          cell.textLabel?.text = filteredData[indexPath.row].place
      } else {
  
      cell.textLabel?.text = placeList[indexPath.row].place
  
      }
      return cell
  }
  </code></pre>
  
  <p>func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {</p>
  
  <pre><code>    if searchBar.text == nil || searchBar.text == "" {
          isSearching = false
          view.endEditing(true)
          tableView.reloadData()
      } else {
          isSearching = true
          // error in below line of code...
          filteredData = placeList.filter({$0.place == searchBar.text})
          tableView.reloadData()
      }
  
  }
  </code></pre>