implemented ClassCustom::CastFrom