args: collection - Given a (multi)geometry, return a (multi)geometry consisting only of elements of the specified type.