silence some more warnings

mostly by casting to the type that clang tells me to