Khao lam ( Thai : ข้าวหลาม ) is sticky rice with sugar and coconut cream cooked in specially prepared bamboo sections of different diameters and lengths. It can be prepared with white or dark purple ( khao niao dam ) varieties of glutinous rice. Sometimes a few beans or nuts are added and mixed in. Thick khao lam containers may have a custard-like filling in the center made with coconut cream, egg and sugar.