I am trying to convert a DataTable to array using Select and toArray I did this:
List<int> LevelsArray = CardServiceDetailsDt.Select("LEVEL_ID").ToList<int>();
but an error is accrued
'System.Data.DataRow[]' does not contain a definition for 'ToArray' and the best extension method overload 'System.Linq.Enumerable.ToArray<TSource>(System.Collections.Generic.IEnumerable<TSource>)' has some invalid arguments