Silencing compile warning with cast.