Revert "refs #6583. Fix type cast."

This reverts commit e6dfd055347a16205454172c6512da2e93094617.