turn a game variable into an array?

can you turn a default variable (as in $gameVariables) into an array?
like how would you write "X = [1,2,3]" with X being a game variable in a script box (assuming it's actually doable)?
$gameVariables.setValue(x, [1,2,3]); where x is the variable number.

This is a great resource for simple script calls:
many thanks

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/turn-a-game-variable-into-an-array.138706/