fix comparison - only result true if the same type