Add int value in Array of int

Hello, i try to add int value in array of int, but i have error.
i have array of int (Test_index)
integer value (int_value)

I create assign activity and try:
Test_index = Test_index.Append(int_value).toArray

please let us know also which one you faced. thanks
In General a list is more suitable for such a task

Here is the solution, I created a Temporary List of Int “Test_List”. I first converted Int Array to this List then added the Integer, then converted list back to array. It’s always better to use a list as Lists are dynamic and Arrays are static.