Catch a potential type error