Do not hide variables from the outer scope. Explicit cast to avoid warnings (Solaris...