Fixed conversion warnings for PNA compiler.

Sorry I realized that compiling with the other compiler for the PNA there were a lot of warnings here fixed.