validate arg type