converting string array to int array for sql statement c# : In my model i have: 

    public List<uint> Ids {get; set;}

I am executing sql in my get call and the format for the Ids are not in proper format for the sql statment to successfully execute. 

    db.tableName.FromSql("SELECT * FROM tableName where( id in ({0}) && itemId = {1}), x.Ids, x.ItemId);

currently my x.ids looks like this: [0]: 100 [1]: 101
i want for my x.ids to look like 100, 101 so that in my where clause they will look like...`id in (100, 101)`..

I have tried: `var temp = string.Join(', ', x.Ids); //result: "100, 101"` but this is a string array and i want int array for the sql to work. 
x is being passed in my method. 

Is there a simple way to make this conversion or do i have to loop through the string array and convert and push into int array?
