Add some optional pointer casts (avoid static source code analysis warnings)