Hi Stefan,
The function is int(arg) and not to_int(arg). Please refer to Studio Help (Press F1) and search for "Functions used in Expressions". VARCHAR or NVARCHAR doesn't have any impact in this case.
Just out of curiosity, why do you need to convert it to Int. Do you wish to use it as a MEASURE ?
Regards,
Ravi