They get converted by the cell editor. There is a function for converting values in the getData() call too but this only gets called for csv lookups.