What's the difference between:
long myLong; float myFloat = (float) myLong;
and
float myFloat = float(myLong);
There is no difference except the syntax, but in C ++ you really should use templated casting :