@classmethod
    def to_binary(cls, val, protocol_version):
        return b'' if val is None else cls.serialize(val, protocol_version)
Serialize a value into a bytestring. See the serialize() method for
dataset/ETHPy150Open datastax/python-driver/cassandra/cqltypes.py/_CassandraType.to_binary