//yes, a Float wrapper class is an object, so you can assign an Object reference to this Float object.
Object objRef = new Float(9f);
//The object never forget who she is (Float), so this will call the toString() method in the Float object
System.out.println(objRef.toString());
//now I think I need to invoke method only available in the Float Object, So i assign it to a Float reference
//As i am doing down casting, I need to make an explicit cast like this:
Float ft = (Float) objRef;
The code u have in your first posting will throw a class cast exception because the first object u are creating is an Object (it will always be). It is not a Float wrapper, so it wont work if u down cast it to a Float.
But u can change a
string to a float with the following code:
String s = "9F";
Float f = Float.valueOf(s);