Translating a transform to a position stated in an array.

I’m trying to make an AI type thing for a game, based on random points, and this is the code:
using UnityEngine;
using System.Collections;

public class peopleAI : MonoBehaviour {
	public Vector3[] randomGotoPoints;
	public Transform gotoLocation;
	private Vector3 gotoLocationPlace;
	private int place;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	IEnumerator Person () {
		place = Random.Range (0, randomGotoPoints.Length);
		gotoLocationPlace = randomGotoPoints.GetValue (place);
		gotoLocation.Translate (gotoLocationPlace);
		yield return null;
	}
}

It says I can’t convert an object to UnityEngine.Vector3. I don’t see how that there is an object.
I want it to choose a random value from the array, then have an object go to that place.

You can simply put this in your transform.Translate(randomGotoPoints[place]);

@ChicathecChickenProgrammer you are getting the error because the method Array.GetValue(int32) returns an object not a Vector3. See the method’s return value in this reference:

So, to use that method you would need to cast the result to a Vector3:

gotoLocationPlace = (vector3) randomGotoPoints.GetValue (place);

But it’s much simpler to get the Vector value of the array element, directly from the array, by using the element’s index:

gotoLocationPlace = randomGotoPoints[place];

…or even use the more compact form that @Nishchhal suggested.