i dont get why i cant make a vector 3 out of a GameObject send help

public class Movement2D : MonoBehaviour
{

public string teleportOne;
private Vector3 HomeTeleport;

void Start()
{
   
    HomeTeleport = GameObject.Find("HomePos");

}

void OnCollisionEnter2D(Collision2D collision)
{
    if (collision.gameObject.tag == "teleportOne")
    {
        transform.position = new Vector3(HomeTeleport);
    }
}

Your HomeTeleport is a Vector3, and you’re only asking to Find the object. Not it’s transform.postion,

so I would assume a simple fix is :

void Start()
 {
     HomeTeleport = GameObject.Find("HomePos").transform.position;
 }