Typecast return of Pods_JSON_API_Pods_API::cleanup_pod as object.

It's used in two places both times immediately passed to get_object_vars(), which was throwing errors.
get pods form class before using it.