Parameter casting and validation for Nette Framework