add explicit casting for command line args