convert types for checkboxes