I have the problem of wanting to extract an element from an ArrayList as such, because when I have to use that element for some operation, it tells me that it is of type object, here is the example
ArrayList Lista = new ArrayList() { 1, 3, 4, "100" };
Console.WriteLine(Lista[1]+2);
In this case the output would be 5
, but as explained before the problem is that it tells me that it is object type and that the operation can not be carried out.