error CS0308: The non-generic method `GetComponent' cannot be used with type arguments

void Start () {
    controller = GameObject.Find("WController").GetComponent<WController>();
}

This code will create the folowring error. error CS0308: The non-generic method `GetComponent' cannot be used with type arguments im using unity 2.5.1f5 And im not able to change this to the "new" 2.6 release. As the project is not going to be converted.

Would some one be so kind and hint how I can fix this ?

Thanks in advance.

I don't think there's any way you're going to get that to work in Unity 2.5. Use the non-generic version.

controller = (WController)GameObject.Find("WController").GetComponent(typeof(WController));

controller = GameObject.Find("WController").GetComponent(WController) as WController;