@Override
			public <T> Object convert(Varnode vn, PcodeExecutor<T> executor) {
				PcodeExecutorStatePiece<T, T> state = executor.getState();
				PcodeArithmetic<T> arithmetic = executor.getArithmetic();
				return (short) arithmetic.toLong(state.getVar(vn, executor.getReason()),
					Purpose.OTHER);
			}
An annotated userop with a fixed number of arguments

@param <T> the type of data processed by the userop
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibrary.java