If you're trying to convert a Table object into a PdfPTable object, you might want to try
var pdfPTable = table.CreatePdfPTable();