Skip to content

Cannot convert value of type 'Expression<String>' to expected argument type 'String?' #858

@sourabhsriom

Description

@sourabhsriom

I am using the filter option get a variable I need to pass to a label as its text.

let naam = bowlersTable.filter(self.name == bowler)
let bowlerName = (naam[name])
self.BowlerName.setText(bowlerName)

I get the error saying :

Cannot convert value of type 'Expression<String>' to expected argument type 'String?'

How do we change the column type to a string?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions