Fix for display of cast cost decimal value
Refactorization