Replace table keys

Is it possible to change the name of a key to be a number? Im reading from a table of players that are indexed by their steamid so for example “users[“STEAM_0:0:0”]” would return the table of that key. But “users[1]” wouldnt return the value of that key or any key at all. So i want to replace all the keys to be numerical 1 through #users. Thanks in advance