An error will be thrown if no type could be found