I'm using "as!" for a custom tableView cell and my understanding is that it's generally OK, however I'm using SwiftLint and would like to see if I can provide an alternative. Using a guard statement, is there an alternative I can provide that won't cause a crash? Or should I go a different route? Thanks!
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard let cell = tableView.dequeueReusableCell(withIdentifier: "CustomTableViewCell") as? CustomTableViewCell
else {
return //something?
}