Wrong value passed in for coersion error. Fixes #2050.