asInstanceOf isn’t needed any more
new params api