Fail on invalid types passed to statement