Add helper get_as function.