find taerget withou string

I have a prefab of enemies you have to find the target player. How can I make searching GetComponent (); instead of using tags?

private Transform target;

target = GetComponent<Player>();

Thank you very much :slight_smile: @LeftyRighty