possibility to automatically cast the input