在需要将表达式值转换为所需类型时,请使用类型匹配补全。例如,键入

String s = (

并按 &shortcut:SmartTypeCompletion; 查看所发生的情况。