Fix an issue with inadvertently changing properties introduced by performance optimization 8ac2c503
Merge pull request #138 from andig/fix-property-casting

Fix an issue with inadvertently changing properties