Ok, Although I would still like to find an answer I have found a workaround. According the the Java Docs the java.lang.Object can be used with Class.equals(Object); which is great for testing if an item has been clicked and the System.out.println(); will happily print out the value but it cant be loaded into a float variable.
So the float distance cant be used in code?
So the float distance cant be used in code?