core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java
@SuppressWarnings("unchecked")
  public Message convert(T thriftObj) {
    return doConvert((TBase<?, ?>)
                     Preconditions.checkNotNull(thriftObj, "Can not convert a null object"));
  }
@SuppressWarnings("unchecked")
  public Message convert(T thriftObj) {
    return doConvert((TBase<?, ?>)
                     Preconditions.checkNotNull(thriftObj, "Can not convert a null object"));
  }
Convert a thrift object to a protobuf message.
@param thriftObj thrift object
@return protobuf protobuf message