title: How to fix Cannot convert value of type 'Binding<Device>' to expected argument type 'Device'
body: <p>I am coding up a little app and I need to pass a variable to a function. The problem is that that variable is a binding but the function has to accept a regular variable.</p>
  <p>Code:</p>
  <pre><code>ForEach($deviceArrays.devices, id: \.id) { deviceArray in
       HStack {
            ForEach(deviceArray.row, id: \.id) { device in
                 AnotherView(device: $currentDevice, size: $size)
                     .onAppear {
                          setCurrentDevice(to: device)
                      }
          }
      }
  }
  </code></pre>
  <pre><code>func setCurrentDevice(to device: Device) {
      currentDevice = device
  }
  
  </code></pre>