Merge pull request #133 from sgmap/master

Fix ass casting