Don't assert value type in ``to_text`` and ``to_binary``