temporary fix for casting issue
Merge pull request #740 from realm/al-temp-fix

Temporary fix for casting issue in core