Error while creating a variable in Input Dialog -> Result


I am from UNIX background and completely new in UiPath and trying it for a couple of weeks now.

I am trying to create an if-else scenario using a sequence, where, if a year is leap year, it will say so. In Input Dialog --> Output --> Result field, I created a variable by right click --> create variable feature (variable name: Year). The variable is created under variable section with variable type GenericValue.
Now when I am trying to change the type to Int32 for obvious reasons, it’s showing the following error beside the Result field -

Compiler error(s) encountered processing expression “Year”.Invalid L-value expression.:Reference expressions cannot end with Conversion. The provided expression’s type must exactly match the type T of VisualBasicReference or LambdaReference.

Weird thing is, if Icreate the ariable first in variable section with int32 type and then use it in Input Dialog Result section, then it’s working without any errors.