|
How can I cast a single element from an Array to an integer, while #pragma strict is on, and without using #pragma downcast?
(comments are locked)
|
|
I don't think you can - there's no cast operator I would honestly skip on using Array, it's untyped and will cause a fairly large amount of garbage when boxing/unboxing your ints Instead, use a List., like so: You can then use .Add to add things in, and access items with possibleIndices[i] as before
(comments are locked)
|
