This is my code
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:/techsoft /PP1.accdb;Persist Security Info=False");
con.Open();
cm = new OleDbCommand("select aa from ab", con);
OleDbDataReader qq;
qq = cm.ExecuteReader();
ArrayList ss = new ArrayList();
while (qq.Read())
{
object[] values = new object[qq.FieldCount];
qq.GetValues(values);
ss.Add(values);
}
if i use this syntax to convert
int[] i = (int[])ss.ToArray(System.Type.GetType("System.Int32"));
the following error occurs " At least one element in the source array could not be cast down to the destination array type."
plz suggest me a one solution or any other alternative way