As is a helper function that attempts to extract a target type from the error
and returns it. It returns false if the error does not contain the target
type.
Must is a helper function that panics when the error is not nil. Otherwise,
it returns the first argument. It is intended for use with functions that
should never return an error when called.