It doesn't matter whether the milk used to make the cheese was pasteurised. All hard cheese is safe, but mould-ripened soft cheeses are not because the soft rind provides a breeding ground for bacteria.
So, unpasteurised Stilton, cheddar, Gouda etc is fine.
Brie, Camembert, soft chèvre etc is not fine, even if made with pasteurised milk.
Cheesecake will be made with a processed cream cheese like Philadelphia. That's fine.