Basic autocast usage

@ptrblck hello sir i also posted another question can you please take a look into it.
link