c# cast array to list from other type code example Example: c sharp array to list var list = new List<int>(array);