type casting util method added