Revert "Don't cast"

This reverts commit ce22cde218638c4e8beb9d0d153b53bc383c0918.
Merge pull request #31 from jmesnil/revert_cast

Revert "Don't cast"