var layer = engine.tileLayers.get(layerID);
var layer = cast(engine.layers.get(layerID), Layer).tiles;
import com.stencyl.models.scene.Layer;