Avoid cast with wrapper function.