- Cast argument to proper type in order to avoid warnings like     "shift value is too large for given type"
- Cast argument to proper type in order to avoid warnings like
    "shift value is too large for given type"

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase