the type value here is ok, also I think that this ```type_cast_calculated_value``` is an old  implementation. That worked fine when calculated do not accepts complex fields