Extract the class (or type) of an object for use in error messages.
Examples
object_type("a")
#> [1] "character"
object_type(1L)
#> [1] "integer"
object_type(1.1)
#> [1] "double"
object_type(mtcars)
#> [1] "data.frame"
object_type(rlang::quo(something))
#> [1] "quosure"