Added buffer cast