Put the pasta, cheese and ham in a buttered ovenproof dish. The last layer should be pasta or cheese. Mix the cream, egg yolk and parmesan, season with oregano. Pour the sauce over the casserole. Bake at 220 degrees for about 25 minutes until the cheese is golden brown.