Toggle NGUI switch programmatically

I want to toggle UIToggle programmatically. I’ve been stuck here for hours. Is there any function to do this?
Below is what I have.

public UIToggle soundchkbox;
soundchkbox= soundchkbox.GetComponent();
soundchkbox.startsActive = true;

I can read the value but I want to be able to toggle it programmatically. Any help will be appreciated. Thanks.

soundchkbox.value = true OR soundchkbox.value = false;
That took days before I discovered the way to do this but it will be helpful for those who will be stuck here too.