Multi value selectable variables with MSSQL as datasource

I’m having problems structuring the query when my variables are multi selectable.
Especially when some of the variables are not numeric.
How can I use cast() on a multi selectable variable?