How to check product type is downloadable programmatically in Magento 2?

Verify Downloadable product type by product object in Magento 2 using SKU or by id.

You can retrieve product objects by the Product Repository interface in the Model Class and use the getTypeId() method to check the type of product.

use const from the  Magento\Downloadable\Model\Product\Type class to get type id of TYPE_DOWNLOADABLE for the product.

If you have product id available you need to call product repository with getById($productId) in the above method instead of get($sku).

Call from the template or any PHP class,

Output:
boolean