macro_rules! get_value_typed {
    ($name:ident, $ty:ty, $variant:ident, $expected:expr) => { ... };
}