This can also happen if your parameter type was changed to String when the value is not a string. (My editor did that for me...)