Modified DrillFuncHolder:getCost() to allow null arguments type in cast