Creating your own converter for String - MyType conversion

    A sample custom type, in this case a Name object with separate fields for first and last name.

    A converter for the name, assuming the parts are separated with a space and that there are only two parts of a name.

    Hooking up the Name type and its Converter to a TextField can then be done like this