Specs for coercing BasicObject to a Hash.
Guard for coercing BasicObject to Hash.