Add required boost:: qualifier for dynamic cast

Refs #9642