@ 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 .