docs: public static <T> byte[] toByteArray(T message, Schema<T> schema, boolean numeric)
      {
          final ByteArrayOutputStream baos = new ByteArrayOutputStream();
          try
          {
              writeTo(baos, message, schema, numeric);
          }
          catch (IOException e)
          {
              throw new RuntimeException("Serializing to a byte array threw an IOException " +
                      "(should never happen).", e);
          }
          return baos.toByteArray();
      }