Add a dedicated function to parse the values of toggles