Add required boost:: qualifier for dynamic cast

Refs #9642
Merge branch 'bugfix/9642_py_except_predict_fractional' into develop