@Override
  public ByteBuffer serializeToByteBuffer() {
    return byteBuffer;
  }
In general, for the requests from the leader, we can directly strong-cast the class to reduce the
cost of deserialization during the execution of the leader state machine. For the requests
received by the followers, the responsibility of deserialization can generally be transferred to
the state machine layer
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/common/request/ByteBufferConsensusRequest.java