pass Component (Script) to function

Right, I have several GameObject types with similar scripts, all of which have an init() function,

my feeble attempt:

function  initComponentIfAvail(myObject : GameObject, myComponent : Component){

		if(myObject.GetComponent(myComponent))
						myObject.GetComponent(myComponent).init();
}

returns the error

GetComponent does not accept an object as parameter but a string that is the name of Component or a type, so you probably should use GetComponent(typeof(myComponent))