Added objects' type comparison