float myFloat = x; //your float double d = (double)myFloat;
double d = getInfoValueNumeric(); float f = (float)d;