Extract the Type from the provided JSONObject and pass it to the provided lambda.
The JSONObject to extract the Type from.
The lambda that accepts two nullable types: 1. The extracted Type and
a Throwable in the event the Type extraction fails.