seems like you need to learn a bit more about c# and types
and just programming basics
why are you trying to assign playerPos to itself?
playerPos.position is a Vector3, playerPos is a Transform,
https://docs.unity3d.com/ScriptReference/Vector3.html
https://docs.unity3d.com/ScriptReference/Transform.html
you can't automatically convert these two, but transform has the position information
from your previous script I assume that PlayerCollision script is already on your player object. so you can access the player transform simply with "transform" which gives you the transform of the object your script is attached to
and then you'd assign the startPosition to the player pos
using UnityEngine;
public class PlayerCollision : MonoBehaviour
{
public Transform startPoint;
void OnCollisionEnter(Collision colinf)
{
if(colinf.collider.CompareTag("Obstacle"))
{
transform.position = startPoint.position;
}
}
}