Javascript Animation Playing Error

#pragma strict

var Anim = gameObject.GetComponent("Animation");
function Update () {

if (Input.GetMouseButtonDown(0))
{
Anim.Play("Shoot");
}
}

For some reason, this line of code will not work. I keep getting the error:
“Assets/Recoil.js(8,6): BCE0019: ‘Play’ is not a member of ‘UnityEngine.Component’.”

I have tried wording it differently, and noone else seems to have this problem. The Animation component IS there, it is just saying Play is not a function for the animation.

Specify a type for Anim, which needs to be Animation.