unity cast int to float

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

Also in C#: