screenshot: Remove redundant casting

Also fixes warning...