Discussion: Casting Storm

  

Hello there, after using Outsystems for almost a year now, I came across the following situation (like, a LOT) when developing:

Having a identifier (let's say, text identifier), i need to compare it with a Integer field, simple right? Err...

SomethingToCompare = TextToInteger(IdentifierToText(MethodThatGivesMeATextIdentifier.Value))

Really? Why can't the IDE simple accept 'SomethingToCompare = MethodThatGivesMeATextIdentifier.Value'. I may guess that when compiling the cast is done only once, so why not let to the compiler make a natural cast? Come on, imaging if on others IDE (Visual Studio, Eclipse, etc) we had cast to everything... 

Currently the platform accepts a Text variable to be assigned with a Integer, but not the other way... Why? Because when casting Integer to Text there is no Exception to be raised? Really?