Refs #8913 Fix type conversion.

Should parameter should be int not double.