code: function(type, value, targetElement) {
          
          switch (type) {
            case 'number':
              value = parseFloat(value);
              break;
            case 'toggle':
              value = targetElement.checked;
              break;
            default:
              value = value;
              break;
          }
          return value;
      }
docs: Parse the input `value` based on the input `type`. Override this method if you need your own specific parsing.