Minor optimization: no need to check if obj is NULL, prop_object_type() does that already.