I'm looking for a solution to enable redstone wiring (completing a circuit) by flicking a lever. If you don't know what I'm asking for, imagine that sticky pistons could push redstone dust, and flicking the piston on and off would push that redstone dust in the middle of two redstone wirings to connect a circuit together. (That example is just to explain the problem, I know that redstone wire can't be pushed)
One solution I thought of was to use a block in place of redstone dust to complete a circuit, but it seems to not work (the piston does not extend when powered).