Remove a couple of redundant casts.
Merge pull request #97 from greboid/window-textframe

Remove a couple of redundant casts.