To explicitly specify the type of a variable or expression, press &shortcut:ShowIntentionActions; and select Add explicit type:

Add explicit type