Casting to correct values.