Changed the code to address type comparison