Refs #8305. Fixing cast.
Merge branch 'bugfix/8305_deprecated_cast' into develop