title: Cannot implicity convert type object to unityengine.Vector3
body: <p>I want to place six objects(ball) on scene. I think the code look workable but I receive a console message. The message : </p>
  
  <blockquote>
    <p>"Assets/GameScripts/Instance.cs(26,40): error CS0266: Cannot
    implicitly convert type <code>object' to</code>UnityEngine.Vector3'. An explicit
    conversion exists (are you missing a cast?)"</p>
  </blockquote>
  
  <p>using UnityEngine;
  using System.Collections;</p>
  
  <p>public class Instance : MonoBehaviour {
      public GameObject ball;</p>
  
  <pre><code>public ArrayList coordinateContainer = new ArrayList();
  
  
  
  // Use this for initialization
  void Start () {
  
      coordinateContainer.Add(new Vector3(1f,1f,1f));
      coordinateContainer.Add(new Vector3(2f,1f,1f));
      coordinateContainer.Add(new Vector3(3f,1f,1f));
      coordinateContainer.Add(new Vector3(4f,1f,1f));
      coordinateContainer.Add(new Vector3(5f,1f,1f));
      coordinateContainer.Add(new Vector3(6f,1f,1f));
  
  
      //ball.transform.position = new Vector3(1f,1f,1f);
      ball.transform.rotation = Quaternion.identity;
  
      for (int i = 0; i &lt;  6; i++) {
          ball.transform.position = coordinateContainer[i];
          Instantiate(ball,ball.transform.position,ball.transform.rotation);
      }
  }
  
  // Update is called once per frame
  void Update () {
  
  }
  </code></pre>
  
  <p>}</p>