Fix a warning of type conversion.  Refs #6694.