Squash compile warning

Solving this with a cast to signed int. The value provided by the user could theoretically be negative, which we check, so we need to parse the value into a signed index variable. (closes #4019)