Ensure that the first argument to WRAP and UNWRAP are of type CONTEXT