Fixed casting errors in the method based executor and an issue that prevented subcommands from being executed properly.