Fix a type conversion warning on OS X.

Refs #10371