Cannot Coerce value into type class.java.date

I'm not familiar with maker edition, but I remember encountering a similar problem in Perspective a little while back, and this was the solution: