commandline: Add cast to prevent warning