Added an unnecessary cast to Object to avoid a bug in Cascade.

This commit avoids cascade/issues/65.

issue #8