Validate - simple & flexible input validation

Or maybe just cast: true as it would be strange to cast to en integer with a string type.