Add lint for unnecessary casts
Remove some unnecessary type casts