Trent Castles snares third ton with Yackandandah