More robust comparison

Should not assume same type