What's wrong with this snippet of code? Compiler complains the _device parameter. But i can't see my error. Code belongs to a BLE delegate.
function disconnectDevice() {
ERROR: edge1030plus: Invalid '$.Toybox.Lang.Object' passed as parameter 1 of type '$.Toybox.BluetoothLowEnergy.Device'.