public static String castValue(String value, Type requiredType, String valueType) {
        String requiredTypeName = requiredType.asString();

        if (requiredTypeName.equals(valueType)) return value;
        return String.format("(%s) %s", requiredTypeName, value);
    }
@Test
    void castReturnValue_whenAValueMatchesTheExpectedTypeNoCastIsNeeded() {
        Type returnType = PrimitiveType.booleanType();
        Type valueType = PrimitiveType.booleanType();

        assertEquals(RETURN_VALUE, castValue(RETURN_VALUE, returnType, valueType.asString()));
    }