How to convert DataTable to object type List in C#

How to convert DataTable to object type List in C#

private List<MyObj> test(DataTable dt)
{
    var convertedList = (from rw in dt.AsEnumerable()
        select new MyObj() 
        {
            ID = Convert.ToInt32(rw["ID"]),
            Name = Convert.ToString(rw["Email"])
        }).ToList();

    return convertedList;
}

Can you try something like this:

List<object> lst = dt.AsEnumerable().ToList<object>();

2020-04-20