Can't Set Animator Boolean Parameter C#

I am trying to get the bool parameter named “Filling” to be true with this script.
using UnityEngine;
using System.Collections;

public class Scr : MonoBehaviour {

	public Component anim;
	void Start () 
		anim = GetComponent<Animator>();

	void Update () 
			anim.SetBool("Filling", true );

This gives me the following error message:[31439-screenshot+(1).png|31439]

‘UnityEngine.Component’ does not contain a definition for ‘SetBool’ and no extension method ‘SetBool’ accepting a first argument of type ‘UnityEngine.Component’ could be found (are you missing a using directive or an assembly reference?) (CS1061) (Assembly-CSharp)

Here is the view in Unity.


I have been trying to figure out how to do this all day, my last post wasn’t approved so I made this one more specific. Please help :(.

public Component anim;

should be

public Animator anim;