and you are later assuming that ``$default`` can be casted to a string, which is not good either, and that parsing it as inline yaml will be a no-op (to keep the default value properly), which is even worse.