fix compiler warnings

fixed various compilation warninsg for slc6. Identical fixes are already in 7XX releases
  - explicit type conversions