task: add static cast to cout to read writeReg args

Signed-off-by: Chris Hannon <himynameschris@gmail.com>