getText() returns a String, and there's no way around that. Converting the String to the actual data type is the only way. In a way, this gives the programmer maximum flexibility, allowing the user...