Adds type casting