Description of problem: There is issue with functions, that return different data type than is their argument.