Made cast function unwrap internally
Merge pull request #194 from bvssvni/master

Made cast function unwrap internally