Changes Scala (concrete) type to interface type.