code changes to type conversion and comparison