How do I find an array of objects that have scripts attached?

Hi, I am trying to find an array of objects of this type.

public var CrashBoxes: crashBoxScript [];

import UnityEngine;
import System.Collections;

public class Garage extends MonoBehaviour {


public var CrashBoxes: crashBoxScript [];


function Awake (){
CrashBoxes_Set01 = GameObject.FindGameObjectsWithTag("CrashBoxes_Set01");


    }

}

This method comes up with an error:

Cannot convert ‘UnityEngine.GameObject’ to ‘crashBoxScript ’.

Thanks, Tim.

Because you are trying to store gameobjects in an array of type crashBoxScript. You array should be of type gameObject or you should access script using getComponent to store it in your array.