as_taxonomy function

Validate and coerce any object as a taxonomy