Use firm, sweet-tart apples and cook off their juice before baking, so the custard does not turn watery. The tart slices best after it has cooled completely and chilled for at least an hour. Keep it covered in the fridge for up to 3 days. For a dairy-free version, use plant butter and unsweetened soy or oat milk.