added option to ignore casts from int to char