cast bug fix
Merge branch 'master' of https://github.com/ese-unibe-ch/ese2013-team6