Upon reviewing a specific piece of code, I noticed that it is not producing any compile time or run time errors even though it should:
message: string // this variable is of type string -- Line 1 <br>
abc: somedatatype // lets assume abc is of some data type -- Line 2
message = <any> abc; // this line should actually produce an error but it doesn't -- Line 3
I am convinced that there should be a compile time error in this case, but surprisingly there isn't. Please provide clarification or suggest how we can rectify this issue as it appears to be significant.