Javascript int to float

 //what do?

 myInt = (int)myFloat;

 myInt = do int stuff with it yo because I need an int not a damn float;

is there a way to caste variables like in c# in javascript? I am having trouble getting this to work, and I am thinking it is some retarded slight syntax difference I am forgetting.

var aFloat = 5.0;
var anInt : int = aFloat;