set value to a component

I am trying to control and set some values to a UnitySteer Radar component. UnitySteer

I am trying to set it up like that:

	gObjParent.GetComponent("Radar").LayersChecked = 1;

but it gives me: Type UnityEngine.Component' does not contain a definition for LayersChecked’ and no extension method LayersChecked' of type UnityEngine.Component’ could be found (are you missing a using directive or an assembly reference?)

Here is the code for the radar script, or at least what I think is applicable.

	[SerializeField]
	LayerMask _layersChecked;

.
.
.

public LayerMask LayersChecked {
	get {
		return this._layersChecked;
	}
	set {
		_layersChecked = value;
	}
}

Use the generic version of GetComponent:

gObjParent.GetComponent<Radar>().LayersChecked = 1;

When you use a string paramter for a GetComponnet() call, the compiler does not know the type of the component and defaults to the Component class. Note I’m assuming C#. For Javascript:

    gObjParent.GetComponent(Radar).LayersChecked = 1;