Get entity by alias

How to get entity by alias
<?php

use Drupal\Core\Url;

// Some entity alias (node, taxonomy_term, user, etc).
$alias = '/about';

// Get URL obj.
$url = Url::fromUri('internal:' . $alias);

// Check exist alias.
if ($url->isRouted()) {
  $params = $url->getRouteParameters();
  $entity_type = key($params);

  // Get entity.
  $entity = \Drupal::entityTypeManager()->getStorage($entity_type)->load($params[$entity_type]);  

  // Return entity obj.
  dump($entity);
}