Fixed cast error reported in play.