Cell Shading in Unreal

I was also trying to learn how to create a cell shading material. Did you manage to make it works with shadow casting?