changed command to Object type for supporting int type