Removed improper casts. Thanks to Joerg Bruehe for the fix.
Attach a file by drag & drop or click to upload