A hal library has a tuple struct as below for gpio pin.
pub struct Pin(u8);
I am trying to use this value as shift count. How to convert to u8? casting as below, threw an compilation error, coz tuple can't be casted to u8.
let p = pin as u8;
as expression can only be used to convert between primitive types or to coerce to a specific trait object