You get a `collection.Map` from `collectAsMap`, but the signature calls for a `collection.immutable.Map`.  Hence `toMap`.