Parameter casting and validating for Nette Framework