A bit of protection from invalid types