I got an int-array with multiple values. I have to add an element to that array. I would solve it that way:
int[] myIntArray=SomeMagicThere();
List<int> intList= myIntArray.ToList();
intList.Add(88);
myIntArray= intList.ToArray();
(This is quite simplified, there are good reasons why I cannot change the type of myIntArray)
Would you solve it in another way? It feels a bit "dirty" to do two casts