(As3) cast Array using `as` (closes #2713)