Add GameObject Raycast hits to a variable

I’m trying to make a variable within my raycast script that store the GameObject you are locking at. This is my script

var HitStore : GameObject;

function Update () 
{
	var hit : RaycastHit;
	var ray : Ray = Camera.main.ScreenPointToRay(Vector3(Screen.width*0.5, Screen.height*0.5, 0));
	
if (Physics.Raycast (ray, hit, 60))
{
	if (hit.collider.gameObject.tag == "WaterStore") 
	{
		HitStore = hit.gameObject;
		
		if (Input.GetKeyDown(KeyCode.E))  
		{
			hit.transform.SendMessage("MoveWater", SendMessageOptions.DontRequireReceiver);
		}
	}

}

hit is a RayCastHit but RayCastHits don’t contain a gameObject variable in it. However it contains transform which in turn contains GameObject

HitStore = hit.transform.gameObject

should work.