some SCA related fixes

Includes: 
- remove double checks from get_cmd()
- use static_cast instead of C-Style cast