I have this force cast:
let cell = tableView.dequeueReusableCell(withIdentifier: "TownTableViewCell",
for: indexPath) as! TownTableViewCell
And trying to avoid this by typical method:
if let cell = tableView.dequeueReusableCell(withIdentifier: "TownTableViewCell",
for: indexPath){
}
But its not correct, how should i solve this?