Added cast to supress warning