in the my code,district of demarcated ,is cast or convert??
static List<int> b;
MemoryStream c = new MemoryStream();
BinaryFormatter g=new BinaryFormatter();
g.Serialize(c,b);
byte[] ui= c.ToArray();
c.Position = 0;
List<int> hj = (List<int>)g.Deserialize(c);
You are casting by writing (List)g.Deserialize(c);
You can always check if you can cast or not by using “is” operator:
In your code you can achieve that: