One thing to be careful of is to make sure the nvarchar column will always contain a value that can be casted to an int. You can also specify the casts in the join conditions, so if the nvarchar column may contain a non-int, you can cast the int value to an nvarchar (the example below doesn’t really make sense, but it shows how to specify your own casts):