Find content type id

In my templates, I want to be able to find the content type id of the item.
Normally, to read a value we use the following code:


I believe there is a similar call to get the content type name or content type id. Does any one knows what is the API call to get the content type name/ id in the templates?


See Basically, you’ll use

<content node object>.getPrimaryNodeType().getType())