Update 'isCastable' and 'semCast' doc-comments
Fix issue #1203
Rename some variables in the isCastable code
Merge pull request #1229 from Varriount/fix-1203

Fix issue #1203