Renamed isCasted to isCast