Add type comparision for return statement