Array doesnt work

Why doesnt my Array work? I get this message:
“Scene 1, Layer ‘Actions’, Frame 1, Line 83 1067: Implicit coercion of a value of type Array to an unrelated type flash.display:MovieClip.”

var boxArray:Array= new Array();
boxArray.push(WallLeft);
boxArray.push(WallLeft2);
addEventListener (Event.ENTER_FRAME, hit);
function hit (e:Event):void
{
    var box:MovieClip = boxArray;
    if(Player.x > box.x && Player.hitTestObject(box)){
        Player.x += 5;
        Speed = 0;
        removeEventListener (Event.ENTER_FRAME, hit);
        removeEventListener (Event.ENTER_FRAME, SwipedLeft);
        addEventListener (Event.ENTER_FRAME, ChangeSpeedBack);
    }

    if(Player.x < box.x && Player.hitTestObject(box)){
        Player.x -= 5;
        Speed = 0;
        removeEventListener (Event.ENTER_FRAME, hit);
        removeEventListener (Event.ENTER_FRAME, SwipedRight);
        addEventListener (Event.ENTER_FRAME, ChangeSpeedBack);
    }