test assignment from different type