title: Converting string array to int array for sql statement
body: <p>In my model I have: </p>
  
  <pre><code>public List&lt;uint&gt; Ids {get; set;}
  </code></pre>
  
  <p>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. </p>
  
  <pre><code>db.tableName.FromSql("SELECT * FROM tableName where( id in ({0}) &amp;&amp; itemId = {1})", x.Ids, x.ItemId);
  </code></pre>
  
  <p>Currently, my x.Ids looks like this: </p>
  
  <blockquote>
    <p>[0]: 100 [1]: 101</p>
  </blockquote>
  
  <p>I want for my x.Ids to look like 100, 101 so that in my <code>where</code> clause they will look like <code>id in (100, 101)</code>.</p>
  
  <p>I have tried: <code>var temp = string.Join(', ', x.Ids); //result: "100, 101"</code> but this is a string array and I want Int array for the SQL to work. 
  The variable <code>x</code> is being passed to my method. </p>
  
  <p>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?</p>