docs: @SuppressWarnings("unchecked")
  	public <T> T fromAmf(final ByteArrayInputStream amf)
  			throws ClassNotFoundException, IOException {
  		Amf3Input amf3Input = new Amf3Input(context);
  		amf3Input.setInputStream(amf);
  		// Read object does the actual work of conversion.
  		return (T) amf3Input.readObject();
  	}