Cannot implicitly convert type 'int' to 'int[]'
<p>I have declared my <code>int[]</code> as follows</p>

<p><code>int[] iroleID = new int[] { };</code></p>

<p>My code for getting the values from database and assigning to <code>iroleid</code> is as follows</p>

<pre><code>if (oAuthenticate.getTaskID(out m_oDataSet1, "uspgetTaskID"))
{
  for (int iTaskid = 0; iTaskid &lt; m_oDataSet1.Tables[0].Rows.Count; iTaskid++)
  {
   iroleID = Convert.ToInt32(m_oDataSet1.Tables[0].Rows[iTaskid]["RoleID"].ToString());
   strTaskID = m_oDataSet1.Tables[0].Rows[iTaskid]["TaskID"].ToString();
   arrTaskID.Add(strTaskID);
   }
}
</code></pre>

<p>But i am getting an error as mentioned <code>Cannot implicitly convert type 'int' to 'int[]'</code> can any one help me</p>
