code: @SuppressWarnings("unchecked")
    public Message convert(T thriftObj) {
      return doConvert((TBase<?, ?>)
                       Preconditions.checkNotNull(thriftObj, "Can not convert a null object"));
    }
docs: Convert a thrift object to a protobuf message.
  @param thriftObj thrift object
  @return protobuf protobuf message