Help for this page
my $a = 'Foo'; # $a isa Str now $a = 42; # $a isa Int now
my @list = CustomList.new(); @list = @other_list; # you lose @list's type as well ... # assignment that preservers the type has to # assign to the contents, not the container: @list[*] = @other_list;