I want to do it
List<ushort> uList = new List<ushort>() { 1, 2, 3 };
List<short> sList = uList.Cast<short>().ToList();
but I get InvalidCastException "The specified order is not valid."
How can I quickly and efficiently use the above collection?
Thank.
source
share