While any nut can be used to replace pecans in pie, almonds and hazelnuts are best.