[FIX] casts to avoid duplicate method warnings