#pragma once

#include <yaml-cpp/yaml.h>

class YamlUtilities
{
public:
    template <typename Type>
    static bool isCastable(const YAML::Node& node) {
        try {
            node.as<Type>();
            return true;

        } catch (YAML::BadConversion&) {
            return false;
        }
    }
};
