adding handling for type conversion