small type conversion issues