Added ToFloat() method.