Site icon Hip-Hop Website Design and Development

How to get custom post type post id from slug?

Is it possible to grab the custom post type post id just only from slug?

As much i know we can get from id by using title. But there can be same title in a custom post type so as slugs are unique is it possible???