Changed return type of GetAsMap to be consistent with rest of API