Add typecast to prevent build warning