For some more advanced casting.