Unity 3D Operator "/"Can't be used

Hi guys, i’m making an FPS game and i’m having some problems. I have a gun, and animations, and i want to make it so that when i walk the animation goes at the same speed and don’t look to fast. I am getting this error when trying to run it:

Assets/Scripts/Player.js(49,71): BCE0051: Operator '/' cannot be used with a left hand side of type 'Object' and a right hand side of type 'float'.

Assets/Scripts/Player.js(58,73): BCE0051: Operator '/' cannot be used with a left hand side of type 'Object' and a right hand side of type 'float'.

Heres my code:

var PlayerState : int;
var PlayerAnimSec : GameObject;
var PlayerMotor : CharacterMotor;
var WalkingSpeed : float = 11;
var SprintingSpeed : float = 15;
var PlayerBossController : CharacterController;
var CharacterMag;


function Update () {

PlayerStateController();
PlayerAnims();
CharacterMag = PlayerBossController.velocity.magnitude;

}

function PlayerStateController()
{

if((Input.GetAxis("Vertical") !=0 || Input.GetAxis("horizontal") !=0 ))
{
if (Input.GetButton("Sprint"))
{
PlayerState = 2;
}
else
{
PlayerState = 1;
}
}
else
{
PlayerState = 0;
}

}
function PlayerAnims()
{
if (PlayerState == 0)
{
PlayerAnimSec.animation.CrossFade("Idle Animation", 0.4);
	}
	
	else if (PlayerState == 1)
	{
	PlayerAnimSec.animation["Walk Animation"].speed = CharacterMag/WalkingSpeed;
	PlayerAnimSec.animation.CrossFade("Walk Animation", 0.4);
	
	PlayerMotor.movement.maxForwardSpeed = WalkingSpeed;
	PlayerMotor.movement.maxBackwardsSpeed = WalkingSpeed/2;
	PlayerMotor.movement.maxSidewaysSpeed = WalkingSpeed;
	}
	else if(PlayerState == 2)
	{
	PlayerAnimSec.animation["Sprint Animation"].speed = CharacterMag/SprintingSpeed;
	PlayerAnimSec.animation.CrossFade("Sprint Animation", 0.4);
	
	PlayerMotor.movement.maxForwardSpeed = SprintingSpeed;
	PlayerMotor.movement.maxBackwardsSpeed = SprintingSpeed/2;
	PlayerMotor.movement.maxSidewaysSpeed = SprintingSpeed;
	}

}

Try

var CharacterMag : float;