[clean-up] Remove still some more unneeded casting

Hopefully the last bits of unneeded casting and faulty use of const
are now gone.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>