I’ve stripped the issue I am having down to isolate the issue. I figure its just a data type issue and I should maybe switch to ArrayLists but… I wanted to see if anyone had a specific insight.
First off here is what I am trying to do, and it works fine with color(); vars.
here is shot of the class define and the main tab where concat is not happy.
When using an array of objects, the data returned from the function must be cast to the object array’s data type.
For example: SomeClass[] items = (SomeClass[]) concat(array1, array2);.
If you dislike using the (cast) operator for concat() I can write for you a version that doesn’t need it like I did for append():