unity transformer double en float

C#
float myFloat;
double myDouble;

void Start()
{
	myFloat = (float)myDouble; //give the value of myDouble to myFloat
}
Source

Also in C#: