macro_rules! extract_object_ref {
    ($args:ident, $idx:expr, $err_msg:expr) => { ... };
}