Why am I getting "specified cast not valid" here?
<p>I have a column <code>MyColumn</code> of type <code>INT</code> and I am retrieving some rows with that column</p>

<pre><code>string selectQuery = $@" SELECT [MyColumn] FROM [dbo].[MyTable]
                         WHERE [Id] IN ('{testid_1}','{testid_2}','{testid_3}')
                         ORDER BY [MyColumn]";

var vals = mydb.ExecuteQuery&lt;int?&gt;(selectQuery).ToList();
</code></pre>

<p>where <code>db</code> is of type <code>DataContext</code>. </p>

<p>Any idea why this is giving me an invalid cast exception?</p>