Corrected integer conversion in error message