Sentence:  Any agreement <WSD>to</WSD> the contrary shall be unlawful and void . 
Meaning of the word marked with <WSD> tags:  contrary to expectations; on the contrary, he went out with his friends"