Fixing various cast issues, using explicit casts now
... such as static_cast<..>(..) and qobject_cast<..>(..).