Simply implementation of `to_guard`