Fixes #857, #392 - also closes #700
Put the casts back in based on #1042
Merge pull request #1037 from devgeeks/WebIntent

Fixes #857, #392 - also closes #700