cosmetics: fix some "conversion from 'foo' to 'bar', possible loss of data" warnings