Hi Dmitry,
The ValueMap interface handles type coercion automatically, you just need to tell it what to do:
String[] values = props.get("jcr:title", String[].class); // will return null if there's no property named "jcr:title"
OR
String[] values = props.get("jcr:title", new String[0]); // will return an empty array if jcr:title isn't a property name
In your example, you should be providing a default value. Otherwise, you could get a null pointer exception if the property doesn't exist.
Regards,
Justin