Go Up to Error and Warning Messages (Delphi)
Identifier
The identifier for the $WARN directive: EXPLICIT_STRING_CAST_LOSS
Description
Emitted when the compiler detects a case where the programmer is explicitly casting some form of Unicode (UnicodeString or WideString) down to AnsiString (or AnsiChar). This is a potential βlossyβ conversion since there may be characters in the string that cannot be represented in the code page to which the string will be converted. This warning is off by default and should only be used to locate potential problems.