Vector3 tricky syntax error?

|Error: BCE0051: Operator"*"cannot be used with a left hand side of type ‘UnityEngine.Vector3’ and a right hand side of type ‘System.Type’.|

I’m getting this error:
BCE0051: Operator ‘*’ cannot be used with a left hand side of type ‘UnityEngine.Vector3’ and a right hand side of type ‘System.Type’.

In relation to this code:
object.rigidbody.velocity += (transform.position - object.transform.position).normalized * gravity * Time.deltaTime;
Which is part of the code below.

function OnTriggerStay(hit : Collider) 

{

   if (hit.transform.tag == "Player") {

      var object : GameObject = hit.gameObject;

      object.rigidbody.velocity += (transform.position - object.transform.position).normalized * gravity * Time.deltaTime; 

   }

}  

This code was written by someone else but I’m trying to get it to work for a prototype. I’m not really sure how to resolve this error. Thank you for any help.

Unity is saying that it cannot multiply “Vector” 3 with “Type”. Check the gravity variable type, it’s supposed to be a number.