class TypeUtils {

    public static boolean castToBoolean(@Nonnull Object value) {
        requireNonNull(value, ERROR_VALUE_NULL);
        if (value instanceof Boolean) {
            return (Boolean) value;
        }
        return "true".equalsIgnoreCase(String.valueOf(value));
    }

    private  TypeUtils();

}