it "raises an error on invalid types"