[AS 2.0] Type Checking Data in Array

Hi everyone,
I’m trying to do something such as:

var n:Node = openList.shift();

I know that all of the data contained inside openList is a type of Node object, but Flash returns an error. I don’t know how to typecast such as placing (in another language)…

(Node) openList.shift();

…to tell Flash that the data returned will be a Node object.

Better yet, is there a way to specify, while declaring the array, the type of the data that will be placed in it?

I could just take the :Node tag out from my variable declaration, but this might be in a tutorial, so I should at least act like I believe half the stuff about proper coding I write about :stuck_out_tongue:

Thanks,
Kirupa :cool: