Convert form array values to enums.