Added type casting to abstract fields