abstract list exemple and converter string to enum