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_whenAValueIsNotAssignedByReturnShouldBeCasted() {
        Type returnType = StaticJavaParser.parseType("String");
        Type valueType = StaticJavaParser.parseType("Object");

        assertEquals(
                String.format("(%s) %s", returnType, RETURN_VALUE),
                castValue(RETURN_VALUE, returnType, valueType.asString()));
    }