Do a cast to BaseScalarFunction and not BaseJointPdf
Do a cast to BaseScalarFunction and not BaseJointPdf

roystgnr/queso,roystgnr/queso,briadam/queso,briadam/queso,roystgnr/queso,roystgnr/queso,roystgnr/queso,briadam/queso,briadam/queso,roystgnr/queso,briadam/queso