When you need to cast an expression value to the required type, use Type-Matching completion. For example, type
and press &shortcut:SmartTypeCompletion; to see what happens.