mountd: Avoid unnecessary type conversions