def _convert_value(self, item):
<EOL>if item.ctype == <NUM_LIT:3>:  <EOL><INDENT>try:<EOL><INDENT>return datetime.datetime(*xlrd.xldate_as_tuple(item.value, self._book.datemode))<EOL><DEDENT>except ValueError:<EOL><INDENT>return item.value<EOL><DEDENT><DEDENT>if item.ctype == <NUM_LIT:2>:  <EOL><INDENT>if item.value % <NUM_LIT:1> == <NUM_LIT:0>:  <EOL><INDENT>return int(item.value)<EOL><DEDENT>else:<EOL><INDENT>return item.value<EOL><DEDENT><DEDENT>return item.value<EOL>
Handle different value types for XLS. Item is a cell object.