How do I convert y x Axis to a int

just dont know how to make this a int instead of a float

public Vector3[] positionArray = new [] { new Vector3(0f,0f,0f), new Vector3(1f,5f,5f) };

void Start()
{
    float TimeBeforStat = positionArray[0].z; //how do i make this a int
}

Mathf.RoundToInt();

Multiple ways to convert a float to an int. Choose any of the code lines below as appropriate.

(int)myFloat;
Mathf.RoundToInt(myFloat);
Mathf.CeilToInt(myFloat);
Mathf.FloorToInt(myFloat);