see https://groups.google.com/forum/#!topic/cukes/ekQBHtnPiQQ.
remove not necessary cast