My two biggest gripes with typed arrays in GDScript: can't construct them from a literal with inferred type information, and all their methods return untyped results.
@yurisizov Be aware that it will throw an error if you don't handle cases like this.
@Emilly Naturally. Also you typed the item variable wrong. Should be just int!