Linter flags

Fixup of casting and whitespaces.