Better type conversion in ObjectReader