Erase type on assignment