While vanilla pudding and custard are both milk (or cream) based, custard usually uses less cornstarch or flour and relies on eggs as the thickener. Custard will therefore set up when baked (like creme brûlée) or frozen (like ice cream). However, vanilla pudding and custard can often be used interchangeably in certain recipes, such as parfaits and trifles.