Added a few missing casts.
Add .gitignore