Since melopita is essentially a cheesecake, making it without dairy is a bit of a risk. I'd suggest opting for a lactose-free ricotta cheese first. However, you can try substituting silken tofu for the ricotta instead. If you do, let me know how it turns out in the comments below!