Note: Raw cassava can be toxic when ingested as it contains naturally occurring forms of cyanide. Cooking it properly makes it safe to eat.
Preheat the oven to 350° F (177° C).
Combine 2 egg yolks, ½ can of condensed milk (about ⅔ cup), ¼ can of coconut milk (about ⅓ cup), and a pinch of salt in a small bowl. Whisk until smooth. Set aside.
Combine 1 pound grated cassava, ½ cup glutinous rice flour, and the rest of the condensed milk and coconut milk in a large bowl. Mix until well combined.
Pour cassava mixture into the pan and spread it evenly.
Bake for 30 minutes until the top has firmed up.
Take it out from the oven and pour the custard on top. Tilt the dish to spread it evenly.
Bake for another 25 to 30 minutes until the custard is set.
Broil on low for 3 to 5 minutes until slightly browned around the edges; watch it closely, so it doesn't burn. Let it cool.
Video
Notes
Grated cassava: You can use either fresh or frozen finely grated cassava.
Glutinous rice flour: Known as sweet rice flour or "malagkit" in Filipino, this flour becomes sticky when cooked. Despite its name, it is gluten-free and not sweet at all.
Coconut milk: I used full-fat coconut milk. You can also use unsweetened coconut cream or evaporated milk, bu this may slightly change the texture and taste.
Egg yolks: I excluded the egg whites to create a smoother, creamier custard layer.