Enums compare question C#

Hi, I get error when trying to compare my enum with its old value.

error CS0019: Operator !=' cannot be applied to operands of type GamePlayerAnimation.AnimState’ and `int’

I thought the enums was some kind of fancy int´s ?

using UnityEngine;
using System.Collections;
using TNet;

public class GamePlayerAnimation : TNBehaviour {

    // Most common animation states.
    public enum AnimState
    public AnimState currentAnimState;

    public int _oldAnimationState;

	// Use this for initialization
	void Start () 
	// Update is called once per frame
	void Update () 
        if (tno.isMine)
            if (currentAnimState != _oldAnimationState)
                tno.Send("AnimState", TNet.Target.OthersSaved, currentAnimState);
                _oldAnimationState = currentAnimState;

You can cast the int value of the enum.

if ((int)currentAnimState != _oldAnimationState)

Or, better yet, store _oldAnimationState as the enum value:

AnimState _oldAnimationState;