Value typecasts cannot be used on the left side of assignments, as variable typecasts. Here are some valid typecasts:
Typecasts
![]()
Byte('A') Char(48) boolean(1) longint(@Buffer)The type size of the expression and the size of the type cast must be the same. That is, the following doesn't work:
Integer('A') Char(4875) boolean(100) Word(@Buffer)