Casting to fix broken build on Travis.