a casted value is returned
merge whit javadoc