This method of the Variant Class coerces the Variant object to a VT_R4 and returns the coerced result. The results of the coercion are not stored in the Variant.
public native float toFloat() throws ClassCastException;
Returns the coerced value converted to a Java float.
ClassCastException if the Variant object's type cannot be coerced.