Add type casting