Add conversion helpers to debugger.

Add a helper called try_convert to convert certain arguments to
ready-to-use values.