Hi,
you don;t really need such method, you can easily convert a RooAbsPdf in a TF1, just do:
RooRealVar * x = ..... // your observable x
RooAbsPdf * pdf = ..... // your pdf
TF1 * f = pdf->asTF( RooArgList(*x) );
double xmax = f->GetMaximumX();
Lorenzo