Refactoring: extract methods "checkParameter" and "performConversion".