Deprectated methods.
Merge pull request #867 from jails/deprecated/casting

Deprectated methods.