I'd go for type hinting before validation ...