Accessing a selected value instead of key in drupal 8
Assuming that code is in a submit/validate method, you have the original form array available, so you can grab the options straight from the element definition:

$key = $form_state-&gt;getValue('foo');
$val = $form['foo']['#options'][$key];