unity cast float to int

C#
//(int) casts float or int after it to an int
intVar = (int)var
Source

Also in C#: