remove some casts

and add something to .gitignore