Remove underscore in enum value

0
I have an attribute called Year which is being used in a microflow for some calculations. The enum value of this attribute is 2018 and 2019. However, when I try to use it in a to integer function it reads it as _2018. Is there a way to remove this? 
asked
3 answers
2

You can also use getCaption($myobject/enumattribute) in your parsing if your caption is numbers only.

Hope this helps.

answered
0

 

This is the error that I am getting. The replace all is not working either. its giving a similar type of error

 

answered
0

This is the attribute

answered