Added casts because interface was made more vanilla.