fix conversions to A16 and A16L16 not working properly
