Now and then I run into the case where I need to only get the values from a render array, but not the properties prefixed with a hash (#). As I tend to forget the name of the helper methods needed to filter these render arrays, here's my blog entry as reminder!
Get Drupal render array children in PHP without properties:
The Element::children() method is what you need in PHP.
$children = Element::children($yourRenderArray)
Get Drupal render array in Twig without properties:
The Twig |children filter is what you need here. It's not part of Drupal core, but of the Twig Tweak module:
{% yourRenderArray|children %}