You are receiving Strings in the array; that is fine and works.
It is much more complicated to send “numbers” with Serial.write() (only sends a byte) and I would not do this.
You must convert the string you received (Strings are in array) to numbers if you want to use them as numbers.
I provided enough for you to get started.