Toggle Switch (on/off) and Write Value Converter

Maybe this topic helps?