Fixed warning messages

Removed some warning messages from the skeleton code (casts mostly)