Mix coconut, sugar, cream milk raisin and cashew nuts in a thick-bottomed pan and keep aside for some time. Say an hour. This is strictly not necessary but I find that it cuts down my cooking time.
Grease a dish and the bottom of a bowl. Keep aside.
Now put the pan with the coconut on low flame and cook stirring constantly.
When the mixture is done the whole thing starts to form a lump in the pan, also the upper portion starts to dry up. Now add green cardamom powder.Add the cashew nuts. Mix well.
Now transfer the mixture to the greased dish and with a greased bowl press the mixture to form a thin layer.
Cool a bit then cut into cubes/diamonds.
Store in an air-tight container.
Notes
I forgot to add the cashew nuts so I have added them on top of the barfi and then pressed the mixture in the greased dish.