Added cast to avoid compile error.