JMWE-177 adding a method to convert an object to a value compatible with a field