Add `as_list` and `as_set` convenience methods

Closes #2.