title: Cannot implicitly convert type `bool' to `UnityEngine.RaycastHit'
body: <p>Hi I tried to cast a line from next to <code>gameObject</code> to <code>gameObject</code>:</p>
  
  <pre><code>bool Valid(Vector3 direction)
  {
      Vector3 position = transform.position;
      RaycastHit hit = Physics.Linecast (position + direction, direction);
      return (hit.collider == GetComponent&lt;Collider&gt;());
  }
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type <code>bool' to</code>UnityEngine.RaycastHit'</p>
  </blockquote>