Switch to casting to the interface