How to check if a user is in a specific role in WordPress?

To get user roles of currently logged in user and match it against a specific user role.