App utils casting util method