Added byte and short types to casts and extractions